#include "utilxmlparser.h"

int UtilXmlParser::queryStringAttribute(const TiXmlElement &xmlNode, const std::string &strName, std::string &strValue)
{
    const char *pVal = xmlNode.Attribute(strName.c_str());
    if (nullptr == pVal)
    {
        return TIXML_NO_ATTRIBUTE;
    }

    strValue = pVal;
    return TIXML_SUCCESS;
}
